home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 9
/
FM Towns Free Software Collection 9.iso
/
t_os
/
tool
/
otohime
/
src
/
iothed.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-16
|
11KB
|
470 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int headDialogId ;
extern int headSubDialogId ;
extern int headNumId[6] ;
extern int headMesId[13] ;
extern int headOkBtnId ;
extern int headOkchk() ;
extern int headPlayBtnId ;
extern int headPlay() ;
extern int headUndoBtnId ;
extern int headUndo() ;
extern int headCanBtnId ;
extern int headCanchk() ;
extern int headInfBtnId ;
extern int headInf() ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIOTHED = { "MmiInit", 26, 0 } ;
/* headDialogId */
static MMIPACKET d001 = { &headDialogId,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
124, 92, 516, 388, 8, 4, 8,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* headSubDialogId */
static MMIPACKET d002 = { &headSubDialogId,
&headDialogId,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d002d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
144, 118, 497, 353, 8, 4, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* headNumId[0] */
static MMIPACKET d003 = { &headNumId[0],
&headSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d003d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
341, 134, 414, 157, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* headNumId[1] */
static MMIPACKET d004 = { &headNumId[1],
&headSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d004d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
341, 170, 414, 193, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* headNumId[2] */
static MMIPACKET d005 = { &headNumId[2],
&headSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d005d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
341, 206, 414, 229, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* headNumId[3] */
static MMIPACKET d006 = { &headNumId[3],
&headSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d006d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
341, 242, 414, 265, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* headNumId[4] */
static MMIPACKET d007 = { &headNumId[4],
&headSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d007d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
341, 278, 414, 301, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* headNumId[5] */
static MMIPACKET d008 = { &headNumId[5],
&headSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d008d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
341, 314, 414, 337, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* headMesId[10] */
static MMIPACKET d009 = { &headMesId[10],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d009d = { MS_LEFTL40 | MS_DSPONLYL40,
224, 281, 317, 298, 0,15, 8,
MS_NONEL40,
"原音の補正値",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[9] */
static MMIPACKET d010 = { &headMesId[9],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d010d = { MS_LEFTL40 | MS_DSPONLYL40,
224, 238, 334, 255, 0,15, 8,
MS_NONEL40,
"サンプリングレート",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[8] */
static MMIPACKET d011 = { &headMesId[8],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d011d = { MS_LEFTL40 | MS_DSPONLYL40,
224, 209, 317, 226, 0,15, 8,
MS_NONEL40,
"ループレングス",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[7] */
static MMIPACKET d012 = { &headMesId[7],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d012d = { MS_LEFTL40 | MS_DSPONLYL40,
224, 173, 317, 190, 0,15, 8,
MS_NONEL40,
"ループポイント",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[11] */
static MMIPACKET d013 = { &headMesId[11],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d013d = { MS_LEFTL40 | MS_DSPONLYL40,
224, 317, 317, 334, 0,15, 8,
MS_NONEL40,
"原音の音階",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[6] */
static MMIPACKET d014 = { &headMesId[6],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d014d = { MS_LEFTL40 | MS_DSPONLYL40,
224, 137, 317, 154, 0,15, 8,
MS_NONEL40,
"データ幅",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[12] */
static MMIPACKET d015 = { &headMesId[12],
&headSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d015d = { MS_LEFTL40 | MS_DSPONLYL40,
220, 253, 330, 270, 0,15, 8,
MS_NONEL40,
"(周波数(KHz)×98)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[5] */
static MMIPACKET d016 = { &headMesId[5],
&headDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d016d = { MS_LEFTL40 | MS_DSPONLYL40,
151, 95, 313, 114, 8,15, 8,
MS_NONEL40,
"ヘッダの書き換え",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* headOkBtnId */
static MMIPACKET d017 = { &headOkBtnId,
&headDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d017d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
144, 358, 205, 381,12, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
headOkchk,
0x0000
} ;
/* headPlayBtnId */
static MMIPACKET d018 = { &headPlayBtnId,
&headDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d018d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
214, 358, 275, 381, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
headPlay,
0x0000
} ;
/* headUndoBtnId */
static MMIPACKET d019 = { &headUndoBtnId,
&headDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d019d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
284, 358, 345, 381, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
headUndo,
0x0000
} ;
/* headCanBtnId */
static MMIPACKET d020 = { &headCanBtnId,
&headDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d020d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
436, 358, 497, 381,10, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
headCanchk,
0x0000
} ;
/* headMesId[0] */
static MMIPACKET d021 = { &headMesId[0],
&headDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d021d = { MS_CENTERL40 | MS_DSPONLYL40,
153, 361, 196, 378, 8,15, 8,
MS_NONEL40,
"実 行",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[1] */
static MMIPACKET d022 = { &headMesId[1],
&headDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d022d = { MS_CENTERL40 | MS_DSPONLYL40,
222, 361, 268, 378, 8,15, 8,
MS_NONEL40,
"再 生",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[2] */
static MMIPACKET d023 = { &headMesId[2],
&headDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d023d = { MS_CENTERL40 | MS_DSPONLYL40,
290, 361, 341, 378, 8,15, 8,
MS_NONEL40,
"アンドゥ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headMesId[4] */
static MMIPACKET d024 = { &headMesId[4],
&headDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d024d = { MS_CENTERL40 | MS_DSPONLYL40,
445, 361, 489, 378, 8,15, 8,
MS_NONEL40,
"取 消",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* headInfBtnId */
static MMIPACKET d025 = { &headInfBtnId,
&headDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d025d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
354, 358, 415, 381, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
headInf,
0x0000
} ;
/* headMesId[3] */
static MMIPACKET d026 = { &headMesId[3],
&headDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d026d = { MS_CENTERL40 | MS_DSPONLYL40,
362, 361, 408, 378, 8,15, 8,
MS_NONEL40,
"情 報",
1, 12, 12,
MS_NONEL40,
0, 0
} ;